<?php /* Smarty version 2.6.26, created on 2011-07-24 23:24:18
         compiled from grid/pagelinks.tpl */ ?>
<?php $_from = $this->_tpl_vars['pages']->getNextLinks(10); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['foo']):
?>
<span class="pages"><?php echo $this->_tpl_vars['foo']; ?>
</span>
<?php endforeach; endif; unset($_from); ?>
<span class="pages"><?php echo $this->_tpl_vars['pages']->getPage(); ?>
</span>
<?php $_from = $this->_tpl_vars['pages']->getPrevLinks(10); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['foo']):
?>
<span class="pages"><?php echo $this->_tpl_vars['foo']; ?>
</span>
<?php endforeach; endif; unset($_from); ?>
<?php echo '
<script language="Javascript">
$(document).ready(function(){

        function showLoader(){

                $(\'.search-background\').fadeIn(200);
        }

        function hideLoader(){

                $(\'.search-background\').fadeOut(200);
        };

      
       $(".pages").click(function(){
                showLoader();
                $("#grid").load("index.php?grid=client&page="+this.id , hideLoader);
                $("#pagelinks").load("index.php?grid=client&pagelinks", hideLoader);
                return false;
        });

});
</script>  '; ?>